<template>
  <el-form :model="illParkModel" ref="illParkForm" :inline="true" label-width="72px" :label-position="'left'">
    <el-row class="search-title">条件搜索</el-row>
    <el-form-item prop="parkname">
      <el-input v-model="illParkModel.parkname" prefix-icon="el-icon-search" clearable
                placeholder="车牌号"></el-input>
    </el-form-item>
    <el-form-item>
      <el-button class="btn-search" type="primary" @click="handleQueryIllPark">搜索
      </el-button>
    </el-form-item>
    <collapse-vertical>
      <div v-show="isDisplay">
        <el-row>
          <el-form-item prop="parentorgname" label="地点">
            <el-input clearable placeholder="地点"  v-model="illParkModel.parentorgname"></el-input>
          </el-form-item>
        </el-row>
        <!--<el-row>-->
        <!--<el-form-item prop="parentorgname" label="车辆类型">-->
        <!--<el-radio-group v-model="parkInfoModel.type" placeholder="接入方式">-->
        <!--<el-radio v-for="item in types" :label="item.id">{{item.value}}</el-radio>-->
        <!--</el-radio-group>-->
        <!--</el-form-item>-->
        <!--</el-row>-->
        <el-form-item prop="date" label="选择日期">
          <el-date-picker v-model="illParkModel.date" type="date" placeholder="选择日期" format="yyyy年MM月dd日"
                          value-format="yyyy-MM-dd">
          </el-date-picker>
        </el-form-item>
        <el-form-item>
          <el-button class="btn-mini-form" type="primary" style="color: white" @click="handleQueryIllPark"
                     size="mini">提交
          </el-button>
          <el-button class="btn-mini-form" type="primary" style="color: white" @click="handleResetIllPark"
                     size="mini">重置
          </el-button>
        </el-form-item>
      </div>
    </collapse-vertical>
    <el-row style="text-align: center">
      <el-button style="border: none;background-color: transparent" size="small"
                 @click="isShow" :icon="isDisplay?'el-icon-arrow-up':'el-icon-arrow-down'">
      </el-button>
    </el-row>
  </el-form>
</template>

<script>
  /* eslint-disable */
  import CollapseVertical from '../../../utils/collapseVertical'

  export default {
    components: {
      CollapseVertical
    },
    name: "ill-park-form",
    data() {
      return {
        isDisplay: false,

        illParkModel: {
          parkname: '',
          date:'',
          parentorgname:''
        },

      }
    },
    methods: {
      handleQueryIllPark() {
        this.$emit('handleQueryIllPark', this.illParkModel)
      },
      handleResetIllPark() {
        this.$refs['illParkForm'].resetFields()
      },
      isShow() {
        this.isDisplay = !this.isDisplay
      }
    }
  }
</script>

<style scoped>

</style>
